package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.User;
import org.example.mapper.UserDao;
import org.example.service.UserService;
import org.example.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
* @author 谢哑
* @description 针对表【user】的数据库操作Service实现
* @createDate 2023-12-10 23:36:56
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Resource
    private UserMapper userMapper;

    @Resource
    private UserDao userDao;

    @Override
    public int updateByMap(Map<String, Object> parameter) {
        return userMapper.updateByMap(parameter);
    }

    @Override
    public List<User> getByAccount(String account) {
        return userDao.getByAccount(account);
    }
}




